
<include file="Public/head" />
<link rel="stylesheet" href="__HOME_CSS__/newdsn/css/jquery-ui.css">
<script src="__HOME_JS__/js/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/dialog.js"></script>


  
<!-- <div class="ad-banner"><p style="background-image:url(images/ad.jpg);"></p></div> -->
<div id="wrapper">
  <div class="reg">
    <div class="reg-step">
      <ul>
        <li class="i-first on step1">账号注册</li>
        <li class="i-last step2">完成注册</li>
      </ul>
    </div>
    <div class="reg-form">
      <ul>
        <li><label class="tit">登录账号:</label><input type="text" id="username" name="username" class="txt"><span class="tips">＊帐户名由4-10个字符组成</span></li>
        <li><label class="tit">手机号码:</label><input type="text" id="mobile" name="mobile" class="txt"><span class="tips">＊请输入真实手机号码，验证身份，修改密码渠道，否则无法修改资料</span></li>
        <li><label class="tit">微信号码:</label><input type="text" id="wechat" name="wechat" class="txt"><span class="tips">＊输入微信号必须真实，验证身份渠道，否则无法修改资料</span></li>
        <li><label class="tit">登录密码:</label><input type="password" id="password" name="password" class="txt"><span class="tips">＊6-20个字母、数字或组合组成，区分大小写</span></li>
        <li><label class="tit">确认密码:</label><input type="password" id="password1" name="password1" class="txt"><span class="tips">＊请再次输入密码以确保输入无误</span></li>
        <li><label class="tit">验证码:</label><input type="text" id="code" class="txt" style="width:247px;"><a href="#" class="yzm"><img src="{:U('Register/Verify')}" class="verifyimg" style="margin-bottom:4px;"></a><span class="tips">＊请输入验证码</span></li>
        <li style="padding-left:74px;"><input type="button" value="注册" id="btnRegister" class="btn"></li>
      </ul>
    </div>
  </div>
</div><!--wrapper end-->
<script src="__HOME_JS__/js/reg.js"></script>
<script>
	var verifyimg = $(".verifyimg").attr("src");
	$(".yzm").click(function(){
		if(verifyimg.indexOf('?')>0){
			$(".verifyimg").attr("src",verifyimg+'&random='+Math.random());
		}else{
			$(".verifyimg").attr("src",verifyimg+'?random'+Math.random());
		}
	})

	
</script>
<script>
$(function(){
	$("#btn").click(function(){
		var name=$("#username").val();
		var password=$("#password").val();
		$.post('/index.php/Login/dologin',{name:name,pwd:password},function(e){
		if(e.result==1){
			//window.location.href='/index.php/Member/index';	
			window.location.href='<?php echo U('Home/Login/agreement')?>';
		}else{
			alert(e.message);
		}
		},'json')	
	})
})
</script>

<include file="Public/foot" />
